package com.newtouch.cq.security.config.detail;

import lombok.Getter;
import lombok.ToString;
import org.springframework.security.web.authentication.WebAuthenticationDetails;

import javax.servlet.http.HttpServletRequest;

@SuppressWarnings("serial")
@Getter
@ToString(callSuper = true)
public class CustomWebAuthenticationDetails extends WebAuthenticationDetails {

	private String code;
	private String randomKey;

	public CustomWebAuthenticationDetails(HttpServletRequest request) {
		super(request);
		code = request.getParameter("code");
		randomKey = request.getParameter("randomKey");
	}

}
